// common-mixin.vue
export default {
    data() {
        return {}
    },
    methods: {
        goToSearch() {
            if (this.$store.getters.userType == 'company') {
                this.$router.push('/looking-for-talent');
            }else{
                this.$router.push('/job');
            }
        },
        routerLink(page, newWindow = false, replace = false,) {
            if (newWindow) {
                window.open(this.$router.resolve(page).href, '_blank');
            }else{
                if (replace) {
                    this.$router.replace(page);
                } else {
                    this.$router.push(page);
                }
            }
        },
    }
}
